package com.guigusuqi.commonutils.constant;

public enum ResultCodeConstant
{
    SUCCESS(200,"成功"),
    FAILED(400,"失败"),
    PARAMS_ERROR(415, "参数有误"),
    ACCOUNT_PWD_NOT_EXIST(400, "用户名或密码不存在"),
    TOKEN_ERROR(401, "token不合法"),
    ACCOUNT_EXIST(402, "用户已经存在！"),
    NO_PERMISSION(401, "无访问权限"),
    SESSION_TIME_OUT(408, "会话超时"),
    NO_LOGIN(401, "未登录"),
    ;

    private int code;
    private String msg;

    ResultCodeConstant(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

}
